// 官方包
import React from 'react';
import { HashRouter as Router, Route, Redirect, Switch } from 'react-router-dom';

// 自定义包
import routes from './router/routes';
import routerUtil from './utils/routesUtil';

export default class App extends React.Component {
	render() {
		return (

			<Router>
				<Switch>
					{
						routerUtil.parseRouterMapTable(routes).map(item => item)
					}
				</Switch>
			</Router>
		);
	}
};
